package com.ygqh.baby.service;

import java.util.List;

import com.ygqh.baby.ao.QueryInfo;
import com.ygqh.baby.ao.ResultSet;
import com.ygqh.baby.ao.ReturnStatus;
import com.ygqh.baby.po.YgReturnOrderLog;

public interface YgReturnOrderLogService {

	List<YgReturnOrderLog> find();

	int findCount();

	YgReturnOrderLog findById(Long id);

	int save(YgReturnOrderLog ygReturnOrderLog);

	int update(YgReturnOrderLog ygReturnOrderLog);

	int saveOrUpdate(YgReturnOrderLog ygReturnOrderLog);

	ResultSet<YgReturnOrderLog> search(QueryInfo queryInfo, String q);

	List<YgReturnOrderLog> getReturnScheduleList(String returnCode);

	int addReturnOrderLog(String returnCode, String operation, ReturnStatus returnStatus, Long userId, String remark);

	int addReturnOrderLog(String returnCode, String operation, ReturnStatus returnStatus, String createBy, String remark);

	int addReturnOrderLogBatch(List<String> returnCodes, String string, ReturnStatus returnStatus, String createBy);

	YgReturnOrderLog findByReturnCode(String returnCode);

	YgReturnOrderLog findByReturnCode(String returnCode, ReturnStatus returnStatus);

	List<YgReturnOrderLog> findReturnLogByOrderId(Long orderId);

	int addBatch(List<YgReturnOrderLog> returnLogs);

}
